<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri= "http://java.sun.com/jsp/jstl/core" prefix= "c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>模块类型管理</title>
<link href="${pageContext.request.contextPath }/admin/login/css/mainstyle.css" rel="stylesheet" type="text/css" />
<link href="${pageContext.request.contextPath }/admin/login/css/common.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${pageContext.request.contextPath }/admin/login/js/tableop.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath }/admin/login/js/common.js"></script>
</head>
<body>
  <div class="rrcc" id="RightBox">
    <div class="right" id="li010">
      <div class="right01"><img src="${pageContext.request.contextPath }/admin/login/images/main/04.gif" /> 其他模块管理 &gt; <span>模块类型管理</span></div>
      
      <div class="primary">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="30">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td height="24" class="tab_head">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td>
                          <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                              <td width="6%" height="19" valign="bottom">
                                <div align="center"><img src="${pageContext.request.contextPath }/admin/login/images/common/tb.gif" width="14" height="14" /></div>
                              </td>
                              <td width="94%" valign="bottom"><span class="STYLE1"> 其他模块类型信息列表</span></td>
                            </tr>
                          </table>
                        </td>
                        <td>
                          <div align="right">
                            <span class="STYLE1">
                              <input type="checkbox" name="checkbox11" id="checkbox11" onclick="batchSelectAll(this, 'ids')"/>全选      &nbsp;&nbsp;
                              <a href="${pageContext.request.contextPath }/admin/login/module/type_add.jsp">
                              	<img src="${pageContext.request.contextPath }/admin/login/images/common/add.gif" width="10" height="10" /> 添加   &nbsp; 
                              </a>
                              <a href="javascript:operConfirmByForm('moduleTypeForm')">
                              	<img src="${pageContext.request.contextPath }/admin/login/images/common/del.gif" width="10" height="10" /> 删除    &nbsp;&nbsp;
                              </a>
                            </span>
                            <span class="STYLE1"> &nbsp;</span>
                          </div>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          
          <tr>
            <td>
            <form action="${pageContext.request.contextPath }/admin/moduletype/moduleTypeDelMany.do?m=deleteMany" method="post" name="moduleTypeForm" id="moduleTypeForm">
              <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tab_head2" onmouseover="changeto()"  onmouseout="changeback()">
                <tr class="tab_th_row">
                  <th width="4%"  class="STYLE10"><input type="checkbox" name="checkbox" id="checkbox" onclick="batchSelectAll(this, 'ids')" /></th>
                  <th width="40%" class="STYLE6"><span class="STYLE10">产品类型名</span></th>
                  <th width="20%" class="STYLE6"><span class="STYLE10">是否可用</span></th>
                  <th width="20%" class="STYLE6"><span class="STYLE10">添加时间</span></th>
                  <th width="16%" class="STYLE6"><span class="STYLE10">基本操作</span></th>
                </tr>
                <c:if test="${not empty requestScope.moduleTypeList}">
                	<c:forEach items="${requestScope.moduleTypeList }" var="moduleTypeItem" varStatus="status">
                		<tr class="tab_td_row">
		                  <td><input type="checkbox" name="ids" id="ids" value="${moduleTypeItem.id}" /></td>
		                  <td class="STYLE19">${moduleTypeItem.type_name}</td>
		                  <td class="STYLE19">
		                  	<c:if test="${moduleTypeItem.status eq 1}">可用</c:if>
                    		<c:if test="${moduleTypeItem.status eq 0}">不可用</c:if>
		                  </td>
		                  <td class="STYLE19">${moduleTypeItem.create_time }</td>
		                  <td>
		                  	<span class="STYLE21">
		                      <a href="javascript:operConfirm('${pageContext.request.contextPath }/admin/moduletype/moduleTypeDelOne.do?m=deleteOne&id=${moduleTypeItem.id}', '${moduleTypeItem.type_name}')" >
		                        <img src="${pageContext.request.contextPath }/admin/login/images/common/del.gif" width="10" height="10" /> 删除
		                      </a> | 
		                      <a href="${pageContext.request.contextPath }/admin/moduletype/moduleTypeForEdit.do?m=detailForEdit&id=${moduleTypeItem.id }">
		                        <img src="${pageContext.request.contextPath }/admin/login/images/common/edit.gif" width="10" height="10" /> 编辑
		                      </a>
		                    </span>
						  </td>
		                </tr>
                	</c:forEach>
                </c:if>
              </table>
              </form>
            </td>
          </tr>
          <tr>
            <td height="30">
              <jsp:include page="/admin/login/page/pbody.jsp" flush="true">
                <jsp:param name="totleCnt" value="${requestScope.moduleTypeForm.totleCnt }" />
                <jsp:param name="currentPage" value="${requestScope.moduleTypeForm.currentPage }" />
                <jsp:param name="totlePage" value="${requestScope.moduleTypeForm.totlePage }" />
                <jsp:param name="firPageUrl" value="/admin/moduletype/moduleTypeList.do?m=list" />
              </jsp:include>
            </td>
          </tr>
        </table>
      </div>
    </div>
  </div>
</body>
</html>